package cn.cloudreal.cbms.common.util;

import org.springframework.web.context.WebApplicationContext;

/**
 * Spring工具类
 * @author Administrator
 *
 */
public class SpringUtils {

	private static WebApplicationContext webApplicationContext;
	public static void setCtx(WebApplicationContext ctx) {
		webApplicationContext= ctx;
	}
    public static Object getBean(String id)
    {
    	return webApplicationContext.getBean(id);
    }
}
